package com.zt.teacher.service.impl;

import com.zt.teacher.dao.ExamQuestionDao;
import com.zt.teacher.service.ExamQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-01-18
 */
@Service
@Transactional
public class ExamQuestionServiceImpl implements ExamQuestionService {

    @Autowired
    private ExamQuestionDao examQuestionDao;

    @Override
    public void insert(int examId, List<Integer> questionIds) {
        examQuestionDao.insert(examId,questionIds);
    }

    @Override
    public List<Integer> getQuestionIdsByExamId(int examId){
        return examQuestionDao.getQuestionIdsByExamId(examId);
    }
}
